package com.abel.demomain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class Runner implements ApplicationRunner {
    @Value("${abel}")
    private String name;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("----------------启动顺序" + name);
    }
}
